<%--                                                                       --%>
<%-- Copyright (c) 2001-2004 BroadVision, Inc.  All rights reserved.       --%>
<%--                                                                       --%>
<%-- This software is copyrighted. Under the copyright laws, this software --%>
<%-- may not be copied, in whole or in part, without prior written consent --%>
<%-- of BroadVision, Inc. or its assignees. This software is provided      --%>
<%-- under the terms of a license between BroadVision and the recipient,   --%>
<%-- and its use is subject to the terms of that license.                  --%>
<%--                                                                       --%>
<%-- This software may be protected by one or more U.S. and International  --%>
<%-- patents.  Certain applications of BroadVision One-To-One software are --%>
<%-- covered by U.S. patent 5,710,887.                                     --%>
<%--                                                                       --%>
<%-- TRADEMARKS: BroadVision and BroadVision One-To-One are registered     --%>
<%-- trademarks of BroadVision, Inc., in the United States and the         --%>
<%-- European Community, and are trademarks of BroadVision, Inc., in other --%>
<%-- countries.  The BroadVision logo, is a trademark of BroadVision,      --%>
<%-- Inc., in the United States and other countries.                       --%>
<%--                                                                       --%>

<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/bpmapp.tld" prefix="ssp" %>
<%@ taglib uri="/WEB-INF/bv-html.tld" prefix="bvhtml" %>

<script language="javascript" src="<%=request.getContextPath()%>/cs/js/date.js"></script>

<table class="zoneFive" width="100%" border="0" cellspacing="0" cellpadding="0" summary="content area">
<tr>
<td valign="top" width="100%">

<!-- Search process instances block -->
<html:form action="/instanceSearch.do">
  <div class="app_pageTitle"><bean:message bundle="appCommonRes" key="bp.processInstance.search.pageTitle" /></div> 
 
  <div class="app_pageSubtitle">
    <span class="left"><bean:message bundle="appCommonRes" key="bp.processInstance.search.pageTitle" /></span>
    <span class="right">&nbsp;</span>
  </div> 
  <!--end page title area here-->
  
	<div class="blockWrap">
	
	<table class="labelForm" width="100%" border="0" cellspacing="0" cellpadding="0" summary="Search criterias">
	
	  <!-- Process name -->
	  <tr> 
        <td class="label" width="30%" ><bean:message bundle="appCommonRes" key="bp.processInstance.search.processName"/>:</td>
		<td class="labelField" width="70%">
		  <html:text property="processName" 
		             size="31" maxlength="80" />
		</td>
      </tr>
      
      <!-- Date range of launch date of process instance -->
      <tr> 
        <td class="label" width="30%"><bean:message bundle="appCommonRes" key="bp.processInstance.search.startedBetween"/>:</td>
		<td class="labelField" width = "70%" nowrap>
          <bvhtml:date property="launchDateStart"/>

      	  <a href="JavaScript:datePopup('<html:rewrite page="/cs/calendar.do"/>',
      		                              'processInstanceSearchForm','launchDateStart')">
      	    <img src="<%= request.getContextPath() %>/ca/images/icons/calendar.gif" 
      		     width="23" height="22" border="0" align="absmiddle" alt="<bean:message key="cs.image.alt.calendar"/>" title="<bean:message key="cs.image.alt.calendar"/>"/></a>
          <html:hidden property="launchDateStart.hour" value="0"/>
          <html:hidden property="launchDateStart.minute" value="0"/>
          <html:hidden property="launchDateStart.ind" value="0"/>
          
          <br>
          <bean:message bundle="appCommonRes" key="bp.processInstance.search.and"/>
          <br>

          <bvhtml:date property="launchDateEnd" />

      	  <a href="JavaScript:datePopup('<html:rewrite page="/cs/calendar.do"/>',
      	                                'processInstanceSearchForm','launchDateEnd')">
      	    <img src="<%= request.getContextPath() %>/ca/images/icons/calendar.gif" 
      	         width="23" height="22" border="0" align="absmiddle" alt="<bean:message key="cs.image.alt.calendar"/>" title="<bean:message key="cs.image.alt.calendar"/>"/></a>
          <html:hidden property="launchDateEnd.hour" value="23"/>
          <html:hidden property="launchDateEnd.minute" value="59"/>
          <html:hidden property="launchDateEnd.ind" value="59"/>
        </td>
      </tr>

	  <!-- Process instance status -->
	  <tr> 
        <td class="label" width="30%" >
          <bean:message bundle="appCommonRes" 
            key="bp.processInstance.search.status" />:
        </td>
		<td class="labelField" width="70%">
          <html:checkbox property="includeInProgress" />
            <bean:message bundle="appCommonRes" key="bp.processInstance.search.inProgress" />
          <html:checkbox property="includeProcessed" />
            <bean:message bundle="appCommonRes" key="bp.processInstance.search.processed" />
		</td>
      </tr>
      
      <!-- Get process instances that current user is the launcher, or 
           is the participant. -->
      <tr> 
        <td width="30%" class="label"><bean:message bundle="appCommonRes" key="bp.processInstance.search.show" /></td>
        <td class="labelField" width="70%">
          <html:select property = "launcherOrParticipant" size="1">
            <html:option value = "LAUNCHER">
              <bean:message bundle="appCommonRes" 
                key="bp.processInstance.search.launcher" />
            </html:option>
            <html:option value = "PARTICIPANT">
              <bean:message bundle="appCommonRes" 
                key="bp.processInstance.search.participant" />
            </html:option>
          </html:select>
        </td>
      </tr>

    </table>

  <div class="pageButtonWrap" align="right">
    <html:reset property="resetBtn" styleClass="pageButton">
      <bean:message bundle="appCommonRes" key="button.reset" />
    </html:reset>
    <html:submit property="submitBtn" styleClass="pageButton">
      <bean:message bundle="appCommonRes" key="button.search" />
    </html:submit>
  </div> 

</html:form>
</div>
</td>
</tr>
</table>

			<!-- End Search process instances page -->
